import request from '@/utils/requestHelper';

export interface SearchType {
  page?: number;
  current?: number;
  userInfo: {
    account?: string;
    name?: string;
  };
}

export async function list(payload: SearchType): Promise<any> {
  return request('/api/userMgr', {
    method: 'GET',
    params: payload,
  });
}

export async function deleteUser(id: any): Promise<any> {
  return request('/api/userMgr', {
    method: 'delete',
    params: {
      id,
    },
  });
}
